home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carousel
/
CAROUSEL.cdr
/
mactosh
/
hc
/
visualou.sit
/
Visual Outliner
/
background_2602.txt
< prev
next >
Wrap
Text File
|
1988-02-10
|
3KB
|
162 lines
-- background: 2602 from stack: in
-- bmap block id: 3272
-- flags: 0000
-- background id: 0
-- name: StackMaker
-- part 1 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=260 top=307 right=329 bottom=360
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: OK
----- HyperTalk script -----
on mouseUp
global totalDays,project,start,ending
put field "Project Name" into project
put field "Start Date" into start
put field "End Date" into ending
if project is empty or start is empty or ending is empty then
answer "All three fields must be filled out." with "OK"
exit mouseUp
end if
convert start to seconds
convert ending to seconds
put 1 + (ending - start) div (24*60*60) into totalDays
if totalDays < 1 then
answer "How can you end before you start?" with "Just Kidding?"
convert start to short date
exit mouseUp
end if
go to card "Overview Template"
set lockScreen to true
go to card "Detail Template"
domenu "Copy Card"
go to card "Overview Template"
set lockScreen to false
domenu "New Stack..."
end mouseUp
-- part 2 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=387 top=308 right=330 bottom=487
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Cancel
----- HyperTalk script -----
on mouseUp
go to card "none open" of stack Home
end mouseUp
-- part 3 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=190 top=65 right=85 bottom=474
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 20
-- text size: 14
-- style flags: 256
-- line height: 18
-- part name: Project Name
-- part 4 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=135 top=113 right=135 bottom=332
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 20
-- text size: 14
-- style flags: 256
-- line height: 18
-- part name: Start Date
-- part 5 (field)
-- low flags: 00
-- high flags: 4000
-- rect: left=118 top=160 right=181 bottom=341
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 20
-- text size: 14
-- style flags: 256
-- line height: 18
-- part name: End Date
-- part 6 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=7 top=279 right=301 bottom=121
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New Project
----- HyperTalk script -----
on mouseUp
answer "Do you want to start a new project, Dennis?" with "You Betcha" or "No"
if it is "No" then exit mouseup
else
domenu New Card
end if
end mouseUp
-- part 7 (button)
-- low flags: 00
-- high flags: 8003
-- rect: left=7 top=306 right=328 bottom=121
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Existing Project
----- HyperTalk script -----
on mouseUp
ask "Enter Project Name"
find it
go it
end mouseUp